package com.ruoyi.system.validate;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author 30547
 */
@Target({ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = IdentifyCodeValidator.class)
public @interface IdentifyCode {

    String message()

            default "证件号不合法";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
